Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lodash.uniq

Package Overview
Dependencies
Maintainers
3
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.uniq

The lodash method `_.uniq` exported as a module.

  • 4.5.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16M
increased by8.63%
Maintainers
3
Weekly downloads
 
Created

What is lodash.uniq?

The lodash.uniq package is a utility function from the Lodash library that creates a duplicate-free version of an array, using SameValueZero for equality comparisons. It can be used to filter out duplicate values from an array to ensure that each value is unique.

What are lodash.uniq's main functionalities?

Removing duplicates from an array

This code sample demonstrates how to use lodash.uniq to remove duplicate numbers from an array, resulting in an array of unique numbers.

[1, 2, 2, 3].filter(_.uniq)

Other packages similar to lodash.uniq

Keywords

FAQs

Package last updated on 13 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc